package flextv {

public class DelmeSingleton {
		
	public function foo(): void {
		trace("DelmeSingelton.foo()");
	}
		
	private static var INSTANCE: DelmeSingleton; 
	public function DelmeSingleton(singletonEnforcer: SingletonEnforcer) {
		if(singletonEnforcer == null) {
			throw new Error("singleton!");
		}
	}
	public static function get instance(): DelmeSingleton {
		if(INSTANCE == null) { INSTANCE = new DelmeSingleton(new SingletonEnforcer()); }
		return INSTANCE;
	}

}
}

class SingletonEnforcer{}